class CreatePriorities < ActiveRecord::Migration
  def self.up
    create_table :priorities do |t|
      t.string  :name
      t.integer :taggings, :default => 0

      t.timestamps
    end

    Priority.create( :name => 'low' )
    Priority.create( :name => 'medium' )
    Priority.create( :name => 'high' )
    Priority.create( :name => 'critical' )
  end

  def self.down
    drop_table :priorities
  end
end
